﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Vending_machine_system.VendingMachineClass
{
    /// <summary>
    /// 标注员操作信息表子表
    /// </summary>
    public class ResultSonClass
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long OperationSonId { get; set; }
        //商品名称
        public string? ShoppName { get; set; }
        //关联操作主表
        public long OperationId { get; set; }
        /// <summary>
        /// 扣取商品数量
        /// </summary>
        public int DeductedNum { get; set; }
        //操作时间
        public DateTime Operatetime { get; set; } = DateTime.Now;
    }
}
